Ext.ns('journal.home');

// {{{
journal.home.ExplorerPanel = Ext.extend(Ext.TabPanel, (function() {
    return {

        // configurables
        // anything what is here can be configured from outside

        // {{{
        initComponent : function() {
            // hard coded config - cannot be changed from outside

            var config = {
                activeTab : 0,
                items : [ {
                    xtype : 'journal.home.EntryExplorerPanel',
                    id : journal.Constant.Id.ENTRY_TREE,
                    closable : true
                } ]
            };

            this.on('click', function() {
                alert(1);
            });

            // apply config
            Ext.apply(this, Ext.apply(this.initialConfig, config));

            // call parent
            journal.home.ExplorerPanel.superclass.initComponent.apply(this, arguments);
        } // e/o function initComponent

    // }}}
    };
})()); // e/o extend

// register xtype
Ext.reg('journal.home.ExplorerPanel', journal.home.ExplorerPanel);
// }}}
